#define _CRT_SECURE_NO_WARNINGS 1

#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef int SLdatetype;

typedef struct Seqlist
{
	SLdatetype* s;
	int size;
	int capacity;
}Seqlist;

void SLinit(Seqlist* ps);
void SeqListDestroy(Seqlist* ps);
void SLpushback(Seqlist* ps, SLdatetype x);
void SLprint(Seqlist* ps);
void SLpopback(Seqlist* ps);
void SLpushfront(Seqlist* ps, SLdatetype x);
void SLpopfront(Seqlist* ps);
void SLinsert(Seqlist* ps, int pos, SLdatetype x);
void SLerase(Seqlist* ps, int pos);
int SLfine(Seqlist* ps, SLdatetype x, int begin);



